<?php
/**
 * Created by.
 * CaoMing
 * 2019-09-22
 * 20:56
 */
?>
@extends("layout.main")
@section("content")
        <div class="col-sm-8 blog-main">
            <div>
                <div id="carousel-example" class="carousel slide" data-ride="carousel">
                    <!-- Indicators -->
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-example" data-slide-to="0" class="active"></li>
                        <li data-target="#carousel-example" data-slide-to="1"></li>
                        <li data-target="#carousel-example" data-slide-to="2"></li>
                    </ol><!-- Wrapper for slides -->
                    <div class="carousel-inner">
                        <div class="item active">
                            <img src="http://py15ohrwf.bkt.clouddn.com/2019/09/7c5b5201909222201511080.jpeg" alt="..." style="width:650px;height: 350px;"/>
                            <div class="carousel-caption">...</div>
                        </div>
                        <div class="item">
                            <img src="http://py15ohrwf.bkt.clouddn.com/2019/09/9df74201909222200393623.jpeg" alt="..." style="width:650px;height: 350px;"/>
                            <div class="carousel-caption">...</div>
                        </div>
                        <div class="item">
                            <img src="http://py15ohrwf.bkt.clouddn.com/2019/09/6661f201909222159423826.jpeg" alt="..." style="width:650px;height: 350px;"/>
                            <div class="carousel-caption">...</div>
                        </div>
                    </div>
                    <!-- Controls -->
                    <a class="left carousel-control" href="#carousel-example" data-slide="prev">
                        <span class="glyphicon glyphicon-chevron-left"></span></a>
                    <a class="right carousel-control" href="#carousel-example" data-slide="next">
                        <span class="glyphicon glyphicon-chevron-right"></span></a>
                </div>
            </div>        <div style="height: 20px;">
            </div>
            <div>
                @foreach($posts as $post)
                <div class="blog-post">
                    <h2 class="blog-post-title"><a href="/posts/{{$post->id}}" >{{$post->title}}</a></h2>
                    <p class="blog-post-meta">{{$post->created_at}} by <a href="/user/5">Kassandra Ankunding2</a></p>

                    <p>{!! $post->content !!}
                    <p class="blog-post-meta">赞 0  | 评论 0</p>
                </div>
                @endforeach
                {{$posts->links()}}
            </div><!-- /.blog-main -->
        </div>
@endsection

